package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.ContractLogBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 合同创建日志表 Mapper 接口
 * </p>
 *
 * @author zhaopenghui
 * @since 2019-09-11
 */
public interface ContractLogMapper extends RootMapper<ContractLogBean> {

    /**
     * 查询列表数量
     * @param params
     * @return
     */
    int getContractLogCount(@Param("params") Map<String, Object> params);

    /**
     * 查询列表
     * @param params
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<ContractLogBean> getContractLogList(@Param("params") Map<String, Object> params, @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);

    int createContractLogList(@Param("beanList") List<ContractLogBean> contractLogBeans);
}